<template>
    <div>
      <Button @click="setCookie()" >setCookie</Button>
      <Button @click="getCookie()" type="primary">getCookie</Button>
      <Button @click="delCookie()" type="primary">delCookie</Button>
    </div>
</template>
<script>
export default {
  name: "debugButton",
  methods: {
    setCookie() {
      var user = {
        id: 1,
        name: "Journal",
        session: "25j_7Sl6xDq2Kc3ym0fmrSSk2xV2XkUkX"
      };
      this.$cookies
        .set("user", user)
        .set("token", "tokentokentokentokentokentokentokentoken");
      console.log(this.$cookies.get("user").name);
    },
    getCookie() {
      console.log(this.$cookies.get("token"));
    },
    delCookie() {
      this.$cookies.remove("token");
    }
  }
};
</script>